#include "UserLogin.h"
#include "AdministorUI.h"
#include "LibrarianUI.h"
#include "StudentUI.h"
#include "TeacherUI.h"

#include<iostream>
using namespace std;


#include <string>

int main()
{

    UserLogin ulogin;
    while(true)
	{

		ulogin.handlUserLogin();
		string userType=ulogin.GetUserType();
		string num=ulogin.GetUserNum();

		if (userType=="student")   StudentUI stuUI(num);

		if (userType=="teacher")   TeacherUI teaUI(num);

		if (userType=="librarian")	LibrarianUI libUI(num);

		if (userType=="administor")	AdministorUI adminUI;
	}
	system("pause");
	return 0;
}
